/**
  ETFAna project, Anyang Normal University && IMP-CAS
  \brief root style imported from RIKEN-SAMURAI
  \author SUN Yazhou, asia.rabbit@163.com
  \since 2024-05-06
  \date 2024-05-08 last modified by SUN Yazhou
  \attention
  changelog
  <table>
  <tr>  <th>Date         <th>Author      <th>Description                   </tr>
  <tr>  <td>2024-05-08   <td>Asia Sun    <td>file created                  </tr>
  </table>

  \copyright Copyright (c) 2021-2024 Anyang Normal U. && IMP-CAS with LGPLv3 LICENSE
*/

#ifndef __CINT__
#include "TROOT.h"
#include "TSystem.h"
#include "TStyle.h"
#include "TCanvas.h"

#include <iostream>
#include <string>
#include <vector>
#include <cstdlib>
#endif

// #include <sys/types.h>
// #include <unistd.h>

void rootlogon(){
  // Base Style
  // gROOT->SetStyle("Plain");
  gROOT->SetStyle("Modern");
  // gROOT->SetStyle("Classic");

  // Force Style
  gStyle->SetHistFillColor(7);
  gStyle->SetHistFillStyle(3002);
  // gStyle->SetHistLineColor(kBlue);
  // gStyle->SetFuncColor(kRed);
  // gStyle->SetFrameLineWidth(2);
  gStyle->SetPadGridX(1);
  gStyle->SetPadGridY(1);
  gStyle->SetCanvasColor(0);
  gStyle->SetTitleFillColor(0);
  gStyle->SetTitleStyle(0);
  gStyle->SetTitleSize(0.04);
  gStyle->SetStatStyle(0);
  gStyle->SetStatColor(0);
  gStyle->SetStatX(0.9);
  gStyle->SetStatY(0.9);
  gStyle->SetPalette(1,0);
  // gStyle->SetOptLogz(1);
  // gStyle->SetOptTitle(0);
  gStyle->SetOptFit(1);
  gStyle->SetOptStat(1111111);
  // gStyle->SetPadBorderMode(1);
  // gStyle->SetOptDate(1);

  // gStyle->SetLabelFont(132, "XYZ");
  // gStyle->SetTitleFont(132, "XYZ");
  // gStyle->SetTitleFont(132, "");
  // gStyle->SetTextFont(132);
  // gStyle->SetStatFont(132);
  gStyle->SetCanvasDefW(800);
  gStyle->SetCanvasDefH(600);
  // paper size in cm. A4: (20, 26); USLetter: (20, 24)
  // gStyle->SetPaperSize(16,16);
} // end mainfunction rootlogon
